package com.hxd.common.constant;

public class Constants {

	/**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";
    
    /**
     * 配置文件-关闭
     */
    public static final String CLOSE = "0";
    
    /**
     * 配置文件-开启
     */
    public static final String OPEN = "1";
    
    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";
    
    /**
     * token
     */
    public static final String TOKEN = "token";
    
    /**
     * 权限开关常量
     */
    public static final String AUTH_SWITCH = "auth.switch";
    
    /**
     * 用户 token前缀
     */
  	public static final String REDIS_USER_PRE = "REDIS:USER:";
  	
  	/**
  	 * 用户权限前缀
  	 */
  	public static final String REDIS_USER_MENU_PRE = "REDIS:USERMENU:";
  	
  	// 云服务商
    public enum CloudService {
        // 本地
        LOCAL(0),
        // 七牛云
        QINIU(1),
        // 阿里云
        ALIYUN(2),
        // 腾讯云
        QCLOUD(3);

        private int value;

        private CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
}
